﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BaseClasses;

namespace SVAccountingWebUI
{
    public partial class TransactionMode : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected override void EnableAddButton()
        {
            lbtnAddNew.Enabled = true;
        }
        protected override void DisableAddButton()
        {
            lbtnAddNew.Enabled = false;
        }

        protected override void EnableInsetDiv()
        {
            InsertDiv.Visible = true;
            dvInsert.ChangeMode(DetailsViewMode.Insert);
        }

        protected override void DisableInsetDiv()
        {
            InsertDiv.Visible = false;
            dvInsert.Controls.Clear();
        }

        protected override void SetControlsAfterInsert()
        {
            GridView1.DataBind();
            InsertDiv.Visible = false;
            dvInsert.Controls.Clear();
        }
    }
}
